

function call() {
  try {
    const { PythonShell } = require('python-shell');
    let pyshell = new PythonShell('python/echo_args.py', {
      args: ['hello', 'world']
  });
  } catch (error) {
    alert(error);
  }
}

function openChrome() {
  try {
    const { PythonShell } = require('python-shell');
    let pyshell = new PythonShell('python/chrome.py', {
      args: ['http://www.baidu.com']
  });
  } catch (error) {
    alert(error);
  }
}